<script lang="ts">
import { useRoute } from 'vue-router';
import router from '@/router';

export default {
  name: 'RedirectDom',
  setup() {
    const route = useRoute();
    const { params, query } = route;
    const { path } = params;
    router.replace({ path: '/' + path, query });

    const render = (h) => {
      return h(); // avoid warning message
    };
  },
};
</script>
